<template>
  <div>
    <div class="mui-numbox" data-numbox-min="1" data-numbox-max="100" style="height:25px">
      <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
      <input class="mui-numbox-input" type="number" :value="id" ref="nubTxt" @change="fn" readonly>
      <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
    </div>
  </div>
</template>
<script>
import mui from "../../../node_modules/mui/js/mui";

export default {
  data() {
    return {};
  },
  mounted() {
   
    mui(".mui-numbox").numbox();
    this.fn()
    
  },
  methods: {
    fn() {
      this.$store.commit('updataCount',{id:this.shopId,count:this.$refs.nubTxt.value})
    }
  },
  props: ["id","shopId"]
};
</script>
<style>
</style>

